import {nanoid} from 'nanoid'
const personAbout = {
    namespaced: true,
    state: {
        personList: [
            {
                id: '001',
                name: 'lqj'
            }
        ]
    },
    mutations: {
        ADDPERSON(state, initValue) {
            const newPerson = {
                id: nanoid(),
                name: initValue
            }
            state.personList.unshift(newPerson)
        }
    }
}

export default personAbout